package org.zoomdev.zoom.rpc;

import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;

public interface MessageHandler {
    void onMessage(SocketChannel client, int id, short func, byte[] bytes);

    void attachBuffer(SelectionKey key, ByteBuffer buffer);
}
